<?php
class forms_FormBase extends Zend_Form
{
	/**
	 * Inits default filters and validators common for elements
	 *
	 * @param Zend_Form_Element $oZendFormElement
	 * @param bool $bIsRequired
	 * @return Zend_Form_Element
	 */
	protected function _initDefaultFiltersAndValidators(Zend_Form_Element $oZendFormElement, $bIsRequired = true)
	{
		$oZendFormElement->setRequired($bIsRequired)
		                 ->addFilter(new Zend_Filter_StringTrim());
//		                 ->addValidator(new Zend_Validate_StringLength(0, 255));
		                 
		return $oZendFormElement;
	}
}